class Artical {
  String? headImg;
  String? name;
  String? contentTitle;
  String? type;
  String? contentImg;
  int? readNum;
  int? zanNum;
  int? collectNum;
  int? id;

  Artical(
      {this.headImg,
      this.name,
      this.contentTitle,
      this.type,
      this.contentImg,
      this.readNum,
      this.zanNum,
      this.collectNum,
      this.id});

  Artical.fromJson(Map<String, dynamic> json) {
    headImg = json['headImg'];
    name = json['name'];
    contentTitle = json['contentTitle'];
    type = json['type'];
    contentImg = json['contentImg'];
    readNum = json['readNum'];
    zanNum = json['zanNum'];
    collectNum = json['collectNum'];
    id = json['id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['headImg'] = this.headImg;
    data['name'] = this.name;
    data['contentTitle'] = this.contentTitle;
    data['type'] = this.type;
    data['contentImg'] = this.contentImg;
    data['readNum'] = this.readNum;
    data['zanNum'] = this.zanNum;
    data['collectNum'] = this.collectNum;
    data['id'] = this.id;
    return data;
  }
}
